<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:fragment="content">
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/layui/css/custom.css}" media="all">
</head>

<form id="item-form" lay-filter="item-form" class="layui-form" action="" style="display:none;">
    <div class="mainBox">
        <div class="main-container">
            <div class="main-container">
                <div class="layui-form-item">
                    <input type="hidden" id="itemFormId" name="id">
                    <input type="hidden" name="version">
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label required" title="项目名称">项目名称</label>
                    <div class="layui-input-block">
                        <input type="text" maxlength="100" name="name" lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label required" title="项目代码">项目代码</label>
                    <div class="layui-input-block">
                        <input type="text" maxlength="50" name="code" lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label required" title="含税价格">含税价格</label>
                        <div class="layui-input-inline">
                            <input type="number" name="price" lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label" title="未税价格">未税价格</label>
                        <div class="layui-input-inline">
                            <input type="number" name="untaxedPrice" lay-verify="" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label" title="税率">税率</label>
                        <div class="layui-input-inline">
                            <input type="number" name="taxRate" lay-verify="" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" title="服务内容">服务内容</label>
                    <div class="layui-input-block">
                        <input type="text" maxlength="255" name="serviceContent" lay-verify="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                </div>
            </div>
        </div>
    </div>
    <div class="bottom" style="display: none">
        <div class="button-container">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="" lay-filter="item-form">
                <i class="layui-icon layui-icon-ok"></i>
                提交
            </button>
            <button type="reset" id="itemFormReset" class="layui-btn layui-btn-primary layui-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
                重置
            </button>
        </div>
    </div>
</form>
<div class="layui-card">
    <div class="layui-card-header" style="height: 100%;">
        <form class="layui-form search-form" action="">
            <div class="layui-form-item" style="margin-top: 10px;">
                <div class="layui-input-inline">
                    <input type="text" name="id" placeholder="项目ID" class="layui-input">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="name" placeholder="项目名称" class="layui-input">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="code" placeholder="项目代码" class="layui-input">
                </div>
                <div class="layui-input-inline">
                    <input type="text" id="itemStart" name="start" placeholder="创建时间范围 起" class="layui-input">
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline">
                    <input type="text" id="itemEnd" name="end" placeholder="创建时间范围 止" class="layui-input">
                </div>
                <button class="layui-btn" data-type="reload">查询</button>
                <button class="layui-btn" data-type="reset">重置</button>
            </div>
        </form>
    </div>
    <div class="layui-card-body">
        <table id="item-table" lay-filter="item-table"></table>
    </div>
</div>

<script type="text/html" id="item-toolbar">
    <button class="layui-btn layui-btn-sm" lay-event="add">
        <i class="layui-icon layui-icon-add-1"></i>
        新增
    </button>
</script>

<script type="text/html" id="item-operate-bar">
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove">删除</a>
</script>

<script th:src="@{/layui/layui.js}" charset="utf-8"></script>
<script th:src="@{/js/item/item.js}" charset="utf-8"></script>